/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package pl.cezary.butler.walili.common;

/**
 *
 * @author root
 */
public class WaliLiSecurityManager extends SecurityManager {
    
    public static final int PORT = 1099;
    @Override
    public void checkConnect(String host, int port) {
        if(port!= port)throw new SecurityException("Port "+port +"nie jest dozwolony");
    }

    @Override
    public void checkConnect(String host, int port, Object context) {
        if(port!= port)throw new SecurityException("Port "+port +"nie jest dozwolony");
    }

    @Override
    public void checkRead(String arg0) {
        
    }

    @Override
    public void checkRead(String arg0, Object arg1) {
        
    }

    @Override
    public boolean checkTopLevelWindow(Object arg0) {
        return true;
    }
    
}
